﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services
{
   public class CategoryDetailMapping
    {
       public static CategoryDetail ConvertToEntity(ViewModelCategoryDetail model)
       {
           CategoryDetail entiry = new CategoryDetail();
           entiry.Id = model.Id;
           entiry.CategoryId = model.CategoryId;
           entiry.LanguageId = model.LanguageId;
           entiry.Name = model.Name;
           
           return entiry;
       }
    }

}
